<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>URL Tester</title>
  <style type="text/css" >@import url('/css/urltester.css');</style>
</head>
<body>
  <div id="content">
  <h1>Destination URL Tester</h1>
  This tool tests given URLs to ensure that they are forwarding on AdWords auto-tagging
  parameters correctly and that the Google Analytics Tracking Code is present on the page
  <form action="/urltester/processSingleURL" method="post">
    URL: <input type="text" id="url_1" name="url_1" size="40" />
    <input type="submit" value="Process" />
  </form><br/>
  <br/>
  <table>
    <tr>
      <th>Source URL</th>
      <th>End URL</th>
      <th>gclid Retained?</th>
      <th>GATC correct?</th>
    </tr>
    <tr>
      <td>{{ source_url }}</td>
      <td>{{ destination_url }}</td>
      <td></td>
      <td></td>
    </tr>
  </table>
  {% if result %}
    URL processed OK<br/>
    Dest url: {{ destination_url }}
  {% else %}
    URL not processed OK: {{ error_msg }}<br/>
    Dest url: {{ destination_url }}
  {% endif %}
  </div>
  
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-1857529-1");
pageTracker._trackPageview();
} catch(err) {}</script>  
</body>
</html>